<template>
  <div>
      <h1>进入小区</h1>
      <div>
          车牌号<input type="text" v-model="car_sn"> <input type="button" value="进入小区" @click="enter">
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return {
            car_sn:"",
        }
    },
    methods:{
        enter(){
            this.axios.post("/record",{"car_sn":this.car_sn}).then(resp=>{
                console.log(resp.data)
            }).catch(error=>{
                console.log(error)
            })
        }
    }
}
</script>

<style>

</style>